package com.nuaa.controller.login;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/login")
public class LoginController {
	@RequestMapping("/home")
	public String toHome() {
		return "home";
	}
	@RequestMapping(value="/home/{id}/{id2}", method=RequestMethod.POST, params="")
	public String toHome2(@PathVariable("id") Integer id, @PathVariable("id2") Integer id2) {
		System.out.println("id is : "+id);
		System.out.println("id2 is : "+id2);
		return "home";
	}
}
